package model;

public class Customer {
    private String id;
    private String name;
    private boolean isMember;   // 是否为会员

    public Customer() {
    }

    public Customer(String id, String name, boolean isMember) {
        this.id = id;
        this.name = name;
        this.isMember = isMember;
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return isMember
     */
    public boolean isIsMember() {
        return isMember;
    }

    /**
     * 设置
     * @param isMember
     */
    public void setIsMember(boolean isMember) {
        this.isMember = isMember;
    }

    public String toString() {
        return "客户ID: " + id + ", 姓名: " + name + ", 会员状态: " + (isMember ? "会员" : "非会员");
    }
}
